<!DOCTYPE html>
<html>

<head>
    <include file="Share:meta" />
    <style type="text/css">
    .trstyle0 {
        background-color: #e8e8e8;
    }
    </style>
</head>

<body class="hold-transition skin-blue sidebar-mini">
    <div class="wrapper">
        <include file="Share:header" />
        <include file="Share:left" />
        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper">
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>账号列表<small><a target="_blank"></a></small></h1>
                <ol class="breadcrumb">
                    <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
                    <li class="active">账号列表</li>
                </ol>
            </section>
            <!-- Main content -->
            <section class="content">
                <div class="box">
                    <div class="box-header with-border">
                        <h3 class="box-title">列表</h3>
                        <div class="box-tools">
                            <form action="__APP__/Admin/Store/slist2" method="GET" role="form">
                                <div class="input-group input-group-sm" style="width: 250px;">
                                    <input type="text" name="name" value="{$Think.get.name}" class="form-control pull-right" placeholder="按代理商名称进行搜索">
                                    <div class="input-group-btn">
                                        <button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                    <!-- /.box-header -->
                    <div class="box-body">
                        <table class="table table-bordered HjTable" border="1">
                            <tbody>
                                <tr style="background-color: #E6E6FA;">
                                    <th style="width: 2%;">ID</th>
                                    <th style="width: 42%;">角色层级</th>
                                    <th style="width: 15%;">公司名称</th>
                                    <th style="width: 10%;">分成</th>
                                    <th style="width: 8%;">印刷码</th>
                                    <th style="width: 5%;">余额</th>
                                    <th style="width: 5%;">积分</th>
                                    <th style="width: 5%;">状态</th>
                                    <th style="width: 5%"><a class="btn btn-success" href="__APP__/Admin/Store/detail2" role="button">新增</a></th>
                                </tr>
                                <notempty name="list">
                                    <volist name="list" id="vo">
                                        <tr class='trstyle{$vo.status}'>
                                            <td>{$vo.uid}</td>
                                            <td>
                                                {$vo.space}└ {$rlist[$vo[rid]][rolename]}
                                            </td>
                                            <td title="名称/帐号/创建时间">
                                            	{$vo.name}
                                                <br>
                                                {$vo.username}
                                                <br/>
                                                <span class="desc">{$vo.ctime|substr=0,16}</span>
                                            </td>
                                            <td>
                                                <p class="desc">业绩上级：{$vo.puid}</p>
                                                <p class="desc">邀请人ID：{$vo.invite_uid}</p>
                                            </td>
                                            <td>
                                            <eq name="vo.rid" value="4">
                                                
                                            <else />
                                                <a href="__APP__/Admin/Store/inventory/uid/{$vo.uid}" type="button" class="btn btn-sm btn-info" style="float:right;">{$vo.inventory}个</a>
                                            </eq>
                                            

                                            </td>
                                            <td>{$vo.money}</td>
                                            <td>{$vo.point}</td>
                                            <td>
                                                <eq name="vo.status" value="1">
                                                    <span class="label label-success">正常</span>
                                                    <else/>
                                                    <span class="label label-warning">禁用</span>
                                                </eq>
                                            </td>
                                            <td><a class="btn btn-info" href="__APP__/Admin/Store/detail2/uid/{$vo.uid}" role="button">详细</a></td>
                                        </tr>
                                    </volist>
                                    <else />
                                    <tr class='trstyle{$vo.status}'>
                                        <!--class='trstyle{$vo.status}' -->
                                        <td colspan="9" style="text-align:center;">没有找到相关记录</td>
                                    </tr>
                                </notempty>
                            </tbody>
                        </table>
                    </div>
                    <!-- /.box-body -->
                    <div class="box-footer clearfix">
                        <ul class="pagination pagination-sm no-margin pull-right">
                            {$show}
                        </ul>
                    </div>
                </div>
            </section>
            <!-- /.content -->
        </div>
        <!-- /.content-wrapper -->
        <include file="Share:copyright" />
        <include file="Share:setting" />
    </div>
    <include file="Share:js" />
    <script type="text/javascript">
    $("#AdminManager").addClass("active");
    $("#store_list2").addClass("active");
    </script>
</body>

</html>
